home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / C / PfTLItr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  7.9 KB  |  226 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:C:PfTLItr.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emith.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODPlatformTypeSetIterator_h
  18. #define SOM_ODPlatformTypeSetIterator_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODPlatformTypeSetIterator
  34. #define ODPlatformTypeSetIterator SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef ODExtension
  42.     #define ODExtension SOMObject
  43. #endif /* ODExtension */
  44. #ifndef ODPlatformTypeSet
  45.     #define ODPlatformTypeSet SOMObject
  46. #endif /* ODPlatformTypeSet */
  47.  
  48. /*
  49.  * End of user-defined types.
  50.  */
  51.  
  52. #define ODPlatformTypeSetIterator_MajorVersion 0
  53. #define ODPlatformTypeSetIterator_MinorVersion 0
  54.  
  55. /*
  56.  * External name shortening if required
  57.  */
  58. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  59. #define ODPlatformTypeSetIteratorNewClass c
  60. #define ODPlatformTypeSetIteratorClassData d
  61. #define ODPlatformTypeSetIteratorCClassData x
  62. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  63. /*--------------Migration------------*/
  64. #define ODPlatformTypeSetIterator_classObj ODPlatformTypeSetIteratorClassData.classObject
  65. #define _ODPlatformTypeSetIterator ODPlatformTypeSetIterator_classObj
  66.  
  67. /*
  68.  * Declare the class creation procedure
  69.  */
  70.  
  71. #if applec ^ PRAGMA_LIB_EXPORT
  72. #pragma lib_export on
  73. #endif
  74.  
  75. SOMEXTERN SOMClass * SOMLINK ODPlatformTypeSetIteratorNewClass(integer4 somtmajorVersion,
  76.         integer4 somtminorVersion);
  77.  
  78. /*
  79.  * Declare the class data structure
  80.  */
  81. SOMEXTERN struct ODPlatformTypeSetIteratorClassDataStructure {
  82.     SOMAny *classObject;
  83.     somMToken InitODPlatformTypeSetIterator;
  84.     somMToken IsNotComplete;
  85.     somMToken First;
  86.     somMToken Next;
  87. }
  88. #ifdef SOM_NO_DATA_EXPORTS
  89.     * ODPlatformTypeSetIteratorGetClassData ( void );
  90. #   undef ODPlatformTypeSetIteratorClassData
  91. #   define ODPlatformTypeSetIteratorClassData (*ODPlatformTypeSetIteratorGetClassData())
  92. #else
  93.       ODPlatformTypeSetIteratorClassData;
  94. #endif /* SOM_NO_DATA_EXPORTS */
  95.  
  96. #if applec ^ PRAGMA_LIB_EXPORT
  97. #pragma lib_export off
  98. #endif
  99.  
  100.  
  101. /*
  102.  * Declare the C specific class data structure
  103.  */
  104. SOMEXTERN struct ODPlatformTypeSetIteratorCClassDataStructure {
  105.     somMethodTabs parentMtab;
  106.     somDToken instanceDataToken;
  107. } ODPlatformTypeSetIteratorCClassData;
  108.  
  109. /*
  110.  * New and Renew macros for ODPlatformTypeSetIterator
  111.  */
  112. #define ODPlatformTypeSetIteratorNew() \
  113.     ( ( ! (ODPlatformTypeSetIteratorClassData.classObject) && \
  114.         (ODPlatformTypeSetIteratorNewClass(ODPlatformTypeSetIterator_MajorVersion, ODPlatformTypeSetIterator_MinorVersion)) ), \
  115.       (_somNew(ODPlatformTypeSetIteratorClassData.classObject)) )
  116. #define ODPlatformTypeSetIteratorRenew(buf) \
  117.     ( _somRenew(ODPlatformTypeSetIteratorClassData.classObject, buf) )
  118.  
  119. /*
  120.  * Override method: somUninit
  121.  */
  122. #define ODPlatformTypeSetIterator_somUninit(somSelf) \
  123.     SOMObject_somUninit(somSelf)
  124.  
  125. /*
  126.  * New Method: InitODPlatformTypeSetIterator
  127.  */
  128. typedef void   (SOMLINK *somTD_ODPlatformTypeSetIterator_InitODPlatformTypeSetIterator)(ODPlatformTypeSetIterator *somSelf, Environment *ev,
  129.         ODPlatformTypeSet* typeSet);
  130. #define somMD_ODPlatformTypeSetIterator_InitODPlatformTypeSetIterator "::ODPlatformTypeSetIterator::InitODPlatformTypeSetIterator"
  131. #define ODPlatformTypeSetIterator_InitODPlatformTypeSetIterator(somSelf,ev,typeSet) \
  132.     (SOM_Resolve(somSelf, ODPlatformTypeSetIterator, InitODPlatformTypeSetIterator) \
  133.     (somSelf,ev,typeSet))
  134. #ifndef SOMGD_InitODPlatformTypeSetIterator
  135.     #if (defined(_InitODPlatformTypeSetIterator) || defined(__InitODPlatformTypeSetIterator))
  136.         #undef _InitODPlatformTypeSetIterator
  137.         #undef __InitODPlatformTypeSetIterator
  138.         #define SOMGD_InitODPlatformTypeSetIterator 1
  139.     #else
  140.         #define _InitODPlatformTypeSetIterator ODPlatformTypeSetIterator_InitODPlatformTypeSetIterator
  141.     #endif /* _InitODPlatformTypeSetIterator */
  142. #endif /* SOMGD_InitODPlatformTypeSetIterator */
  143.  
  144. /*
  145.  * New Method: IsNotComplete
  146.  */
  147. typedef ODBoolean   (SOMLINK *somTD_ODPlatformTypeSetIterator_IsNotComplete)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  148. #define somMD_ODPlatformTypeSetIterator_IsNotComplete "::ODPlatformTypeSetIterator::IsNotComplete"
  149. #define ODPlatformTypeSetIterator_IsNotComplete(somSelf,ev) \
  150.     (SOM_Resolve(somSelf, ODPlatformTypeSetIterator, IsNotComplete) \
  151.     (somSelf,ev))
  152. #ifndef SOMGD_IsNotComplete
  153.     #if (defined(_IsNotComplete) || defined(__IsNotComplete))
  154.         #undef _IsNotComplete
  155.         #undef __IsNotComplete
  156.         #define SOMGD_IsNotComplete 1
  157.     #else
  158.         #define _IsNotComplete ODPlatformTypeSetIterator_IsNotComplete
  159.     #endif /* _IsNotComplete */
  160. #endif /* SOMGD_IsNotComplete */
  161.  
  162. /*
  163.  * New Method: First
  164.  */
  165. typedef ODPlatformType   (SOMLINK *somTD_ODPlatformTypeSetIterator_First)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  166. #define somMD_ODPlatformTypeSetIterator_First "::ODPlatformTypeSetIterator::First"
  167. #define ODPlatformTypeSetIterator_First(somSelf,ev) \
  168.     (SOM_Resolve(somSelf, ODPlatformTypeSetIterator, First) \
  169.     (somSelf,ev))
  170. #ifndef SOMGD_First
  171.     #if (defined(_First) || defined(__First))
  172.         #undef _First
  173.         #undef __First
  174.         #define SOMGD_First 1
  175.     #else
  176.         #define _First ODPlatformTypeSetIterator_First
  177.     #endif /* _First */
  178. #endif /* SOMGD_First */
  179.  
  180. /*
  181.  * New Method: Next
  182.  */
  183. typedef ODPlatformType   (SOMLINK *somTD_ODPlatformTypeSetIterator_Next)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  184. #define somMD_ODPlatformTypeSetIterator_Next "::ODPlatformTypeSetIterator::Next"
  185. #define ODPlatformTypeSetIterator_Next(somSelf,ev) \
  186.     (SOM_Resolve(somSelf, ODPlatformTypeSetIterator, Next) \
  187.     (somSelf,ev))
  188. #ifndef SOMGD_Next
  189.     #if (defined(_Next) || defined(__Next))
  190.         #undef _Next
  191.         #undef __Next
  192.         #define SOMGD_Next 1
  193.     #else
  194.         #define _Next ODPlatformTypeSetIterator_Next
  195.     #endif /* _Next */
  196. #endif /* SOMGD_Next */
  197. #ifndef SOM_DONT_USE_INHERITED_MACROS
  198. #define ODPlatformTypeSetIterator_InitObject ODObject_InitObject
  199. #define ODPlatformTypeSetIterator_IsInitialized ODObject_IsInitialized
  200. #define ODPlatformTypeSetIterator_HasExtension ODObject_HasExtension
  201. #define ODPlatformTypeSetIterator_GetExtension ODObject_GetExtension
  202. #define ODPlatformTypeSetIterator_ReleaseExtension ODObject_ReleaseExtension
  203. #define ODPlatformTypeSetIterator_Purge ODObject_Purge
  204. #define ODPlatformTypeSetIterator_SubClassResponsibility ODObject_SubClassResponsibility
  205. #define ODPlatformTypeSetIterator_somInit SOMObject_somInit
  206. #define ODPlatformTypeSetIterator_somFree SOMObject_somFree
  207. #define ODPlatformTypeSetIterator_somInit SOMObject_somInit
  208. #define ODPlatformTypeSetIterator_somGetClass SOMObject_somGetClass
  209. #define ODPlatformTypeSetIterator_somGetClassName SOMObject_somGetClassName
  210. #define ODPlatformTypeSetIterator_somGetSize SOMObject_somGetSize
  211. #define ODPlatformTypeSetIterator_somIsA SOMObject_somIsA
  212. #define ODPlatformTypeSetIterator_somIsInstanceOf SOMObject_somIsInstanceOf
  213. #define ODPlatformTypeSetIterator_somRespondsTo SOMObject_somRespondsTo
  214. #define ODPlatformTypeSetIterator_somDispatchV SOMObject_somDispatchV
  215. #define ODPlatformTypeSetIterator_somDispatchL SOMObject_somDispatchL
  216. #define ODPlatformTypeSetIterator_somDispatchA SOMObject_somDispatchA
  217. #define ODPlatformTypeSetIterator_somDispatchD SOMObject_somDispatchD
  218. #define ODPlatformTypeSetIterator_somDispatch SOMObject_somDispatch
  219. #define ODPlatformTypeSetIterator_somClassDispatch SOMObject_somClassDispatch
  220. #define ODPlatformTypeSetIterator_somPrintSelf SOMObject_somPrintSelf
  221. #define ODPlatformTypeSetIterator_somDumpSelf SOMObject_somDumpSelf
  222. #define ODPlatformTypeSetIterator_somDumpSelfInt SOMObject_somDumpSelfInt
  223. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  224.  
  225. #endif       /* SOM_ODPlatformTypeSetIterator_h */
  226.